﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ly_thuyet_toi_uu
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Lua chon bai toan: ");
            Console.WriteLine("1. Bai toan tim max truc tiep");
            Console.WriteLine("2. Bai toan tim min theo Nelder-Mead");

            int intChoose = 0;

            int.TryParse(Console.ReadLine(),out intChoose);

            switch (intChoose)
            {
                case 1:
                    clsFindMax objMax = new clsFindMax();
                    objMax.Run();
                    break;

                case 2: 
                    clsNelderMead objNed = new clsNelderMead();
                    objNed.Run();
                    break;

                default:
                    Console.WriteLine("Lựa chọn không chính xác.");
                    Console.ReadLine();
                    break;
            }
        }
    }
}
